package com.lp.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.lp.bo.IotSceneInfoBO;
import com.lp.bo.OtherBO;
import com.lp.common.Code;
import com.lp.common.CodeIot;
import com.lp.service.IotSceneInfoService;

@Service
public class IotSceneServiceImpl extends BaseServiceImpl implements IotSceneInfoService {

	@Override
	public Map<String, Object> getSceneDetailInfo(IotSceneInfoBO tmp) {
		Map<String,Object> resultMap = getResultMap();
		try{
			// 查询场景下的详情信息
			OtherBO bo = dao.selectOne("IotSceneInfo.selectSceneDetail", tmp) ;
			putData(resultMap, bo);
		}catch (Exception e) {
			putStatusCode(resultMap, Code.ResponseCode.SystemCode.ERROR );
			super.exception(e, resultMap, tmp);
		}
		return resultMap;
	}

}
